package com.yanqu.road.entity.enums;

/**
 * @author duli
 * @version 1.0
 * @date 2020/10/14 16:40
 * @Description 联盟成员类型
 */
public enum ePushUnionPosition implements ConvertibleEnum<Integer> {

    Master(1,"会长"),

    DeputyMaster(2,"副会长"),

    Elite(3,"精英"),

    Member(4,"成员");
    ;
    private int intValue;
    private String name;
    @Override
    public Integer getIntValue() {
        return intValue;
    }

    @Override
    public String getName() {
        return name;
    }
    ePushUnionPosition(int value, String name) {
        intValue = value;
        this.name=name;
    }

    public static ePushUnionPosition forValue(int value) {
        for (ePushUnionPosition type : ePushUnionPosition.values()) {
            if (type.intValue == value) {
                return type;
            }
        }
        return null;
    }
}
